package com.icinfo.cloud.provider.punish.api.client.ucase.casemain;

import com.icinfo.framework.common.web.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 描述：案件当事人记录客户端接口
 *
 * @author xiangyuyu
 * @date 2022/6/27 16:50
 */
@FeignClient(value = "${unified-punish-case-provider.namespace:}unified-punish-case-provider", contextId = "CasePartiesRecordClient")
public interface CasePartiesRecordClient {

    /**
     * 描述：获取当事人id、名称信息
     *
     * @param caseId 案件id
     * @return Result<Map < String, String>>  当事人id、名称信息（多当事人时id、name逗号分隔）
     * 返回示例：{partyId:"1001",partyName:"张三"}
     * @author xiangyuyu
     * @date 2022-05-26 15:49
     */
    @PostMapping("/punish/ucase/caseParties/getCasePartyIdNameInfo")
    @ApiOperation(value = "描述：获取当事人id、名称信息", httpMethod = "POST")
    Result<Map<String, String>> getCasePartyIdNameInfo(@RequestParam(value = "caseId") String caseId);
}
